<template>
	<view class="exchange">
		<!-- 福袋专区列表 -->
		<view class="item">
			<image src="../../static/image/gd_fujing.jpg" mode="widthFix"></image>
			<view class="title">
				福袋专区·福袋兑换商城
			</view>
			<view class="duihuan" @click="goDuiHuan(5)">
				去兑换
			</view>
		</view>
		<view class="item">
			<image src="../../static/image/gd_fuzuan.jpg" mode="widthFix"></image>
			<view class="title">
				福袋专区·福钻兑换商城
			</view>
			<view class="duihuan" @click="goDuiHuan(6)">
				去兑换
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			goDuiHuan(val) {
				uni.navigateTo({
					url: "/pages/exchangelist/exchangelist?malltype=" + val
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.exchange {
		padding: 20rpx;

		.item {
			margin-bottom: 20rpx;
			position: relative;

			image {
				width: 100%;
				border-radius: 20rpx;
			}

			.title,
			.duihuan {
				position: absolute;
			}

			.title {
				top: 30rpx;
				color: #fff;
				left: 20rpx;
				font-size: 32rpx;
				font-weight: 700;
			}

			.duihuan {
				right: 20rpx;
				bottom: 30rpx;
				background-color: #4CD964;
				color: #fff;
				font-size: 24rpx;
				border-radius: 999rpx;
				padding: 10rpx 30rpx;
			}

		}

	}
</style>
